const { defaultTheme } = require('vuepress')
const { clipboardPlugin } = require("vuepress-plugin-clipboard");

module.exports = {

  // 站点配置
  lang: 'zh-CN',
  title: 'Oneday',
  description: '记录学习笔记',
  theme: defaultTheme({
	repo: 'https://gitee.com/lovely-dog/v-oneday',
	repoLabel: 'Gitee',
	editLink: false,
	tip: '提示',
	warning: '警告',
	danger: '错误',
	backToHome: '返回首页',
	lastUpdated: false,
	contributors: false,
	themePlugins: {
		mediumZoom: false,
		nprogress: false,
		backToTop: false
	},
	// editLinkText: '编辑页面',
	// docsRepo:'https://gitee.com/lovely-dog/v-oneday',
	// docsBranch: 'master',
	// editLinkPattern: ':repo/blob/:branch/:path',
	
	// lastUpdatedText: '最近修改时间',
	// controbutorsText: '贡献者',
	navbar: [
	// NavbarItem
    {
		text: '首页',
		link: '/',
		activeMatch: '^/$',
	},
	{
		text: '更新轴',
		link: '/update/update.md',
		activeMatch: '^/update/',
	},
	// NavbarItem
    {
		text: '学习记',
		link: '/study/',
		activeMatch: '^/study/',
	},
	{
		text: '搜集册',
		link: '/collector/',
		activeMatch: '^/collector/',
	},
	// NavbarGroup
	{
		text: '随想录',
		//children: ['/group/foo.md', '/group/bar.md'], 最高两层
		link: '/feelings/',
		activeMatch: '^/feelings/',
	}]
  }),
  plugins: [
	// https://www.qbenben.com/docs/play/vuepress-plugin-clipboard.html
	// 代码块复制
	clipboardPlugin({
		staticIcon: false,
		align: 'top',
	})
  ]
}